/*! For license information please see manifest-52367ec75eb84de4de48.chunk.js.LICENSE.txt */ (window.webpackJsonp=window.webpackJsonp||[]).push([[64,5,7],{0:function(t,e,n){"use strict";(function(t){n.d(e,"e",(function(){return r})),n.d(e,"p",(function(){return o})),n.d(e,"a",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"d",(function(){return u})),n.d(e,"o",(function(){return c})),n.d(e,"q",(function(){return s})),n.d(e,"t",(function(){return l})),n.d(e,"i",(function(){return f})),n.d(e,"r",(function(){return d})),n.d(e,"s",(function(){return p})),n.d(e,"k",(function(){return h})),n.d(e,"m",(function(){return y})),n.d(e,"j",(function(){return v})),n.d(e,"l",(function(){return m})),n.d(e,"g",(function(){return g})),n.d(e,"f",(function(){return b})),n.d(e,"h",(function(){return w})),n.d(e,"n",(function(){return x})),n.d(e,"b",(function(){return _}));var r="1.13.1",o="object"==typeof self&&self.self===self&&self||"object"==typeof t&&t.global===t&&t||Function("return this")()||{},i=Array.prototype,a=Object.prototype,u="undefined"!=typeof Symbol?Symbol.prototype:null,c=i.push,s=i.slice,l=a.toString,f=a.hasOwnProperty,d="undefined"!=typeof ArrayBuffer,p="undefined"!=typeof DataView,h=Array.isArray,y=Object.keys,v=Object.create,m=d&&ArrayBuffer.isView,g=isNaN,b=isFinite,w=!{toString:null}.propertyIsEnumerable("toString"),x=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],_=Math.pow(2,53)-1}).call(this,n(2))},10:function(t,e,n){"use strict";var r=n(108),o=Object.prototype.toString;function i(t){return Array.isArray(t)}function a(t){return void 0===t}function u(t){return"[object ArrayBuffer]"===o.call(t)}function c(t){return null!==t&&"object"==typeof t}function s(t){if("[object Object]"!==o.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function l(t){return"[object Function]"===o.call(t)}function f(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),i(t))for(var n=0,r=t.length;n1?n[i-1]:void 0,u=i>2?n[2]:void 0;for(a=t.length>3&&"function"==typeof a?(i--,a):void 0,u&&o(n[0],n[1],u)&&(a=i<3?void 0:a,i=1),e=Object(e);++r-1}},13:function(t,e,n){"use strict";n.r(e);var r={identify:function(t){var e;(null===(e=window.heap)||void 0===e?void 0:e.identify)&&window.heap.identify(t)},track:function(t,e){var n;void 0===e&&(e={}),(null===(n=window.heap)||void 0===n?void 0:n.track)&&window.heap.track(t,e)},addUserProperties:function(t){var e;(null===(e=window.heap)||void 0===e?void 0:e.addUserProperties)&&window.heap.addUserProperties(t)}};e.default=r},130:function(t,e,n){var r=n(26);t.exports=function(t,e){var n=this.__data__,o=r(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this}},131:function(t,e,n){var r=n(25);t.exports=function(){this.__data__=new r,this.size=0}},132:function(t,e){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},133:function(t,e){t.exports=function(t){return this.__data__.get(t)}},134:function(t,e){t.exports=function(t){return this.__data__.has(t)}},135:function(t,e,n){var r=n(25),o=n(56),i=n(84);t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(t,e),this.size=n.size,this}},136:function(t,e,n){var r=n(38),o=n(139),i=n(11),a=n(95),u=/^\[object .+?Constructor\]$/,c=Function.prototype,s=Object.prototype,l=c.toString,f=s.hasOwnProperty,d=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(r(t)?d:u).test(a(t))}},137:function(t,e,n){var r=n(39),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,u=r?r.toStringTag:void 0;t.exports=function(t){var e=i.call(t,u),n=t[u];try{t[u]=void 0;var r=!0}catch(t){}var o=a.call(t);return r&&(e?t[u]=n:delete t[u]),o}},138:function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},139:function(t,e,n){var r,o=n(140),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!i&&i in t}},14:function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},140:function(t,e,n){var r=n(12)["__core-js_shared__"];t.exports=r},141:function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},142:function(t,e,n){var r=n(143),o=n(25),i=n(56);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},143:function(t,e,n){var r=n(144),o=n(145),i=n(146),a=n(147),u=n(148);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},169:function(t,e,n){var r=n(20),o=n(36),i=n(53),a=n(11);t.exports=function(t,e,n){if(!a(n))return!1;var u=typeof e;return!!("number"==u?o(n)&&i(e,n.length):"string"==u&&e in n)&&r(n[e],t)}},170:function(t,e,n){"use strict";var r=n(171),o=n(68),i=n(43),a=Object.prototype.hasOwnProperty,u={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},c=Array.isArray,s=String.prototype.split,l=Array.prototype.push,f=function(t,e){l.apply(t,c(e)?e:[e])},d=Date.prototype.toISOString,p=i.default,h={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,format:p,formatter:i.formatters[p],indices:!1,serializeDate:function(t){return d.call(t)},skipNulls:!1,strictNullHandling:!1},y={},v=function t(e,n,i,a,u,l,d,p,v,m,g,b,w,x,_,S){for(var E,j=e,O=S,k=0,A=!1;void 0!==(O=O.get(y))&&!A;){var C=O.get(e);if(k+=1,void 0!==C){if(C===k)throw new RangeError("Cyclic object value");A=!0}void 0===O.get(y)&&(k=0)}if("function"==typeof p?j=p(n,j):j instanceof Date?j=g(j):"comma"===i&&c(j)&&(j=o.maybeMap(j,(function(t){return t instanceof Date?g(t):t}))),null===j){if(u)return d&&!x?d(n,h.encoder,_,"key",b):n;j=""}if("string"==typeof(E=j)||"number"==typeof E||"boolean"==typeof E||"symbol"==typeof E||"bigint"==typeof E||o.isBuffer(j)){if(d){var P=x?n:d(n,h.encoder,_,"key",b);if("comma"===i&&x){for(var I=s.call(String(j),","),T="",N=0;N0?j.join(",")||null:void 0}];else if(c(p))R=p;else{var L=Object.keys(j);R=v?L.sort(v):L}for(var B=a&&c(j)&&1===j.length?n+"[]":n,F=0;F0?x+w:""}},171:function(t,e,n){"use strict";var r=n(41),o=n(176),i=n(178),a=r("%TypeError%"),u=r("%WeakMap%",!0),c=r("%Map%",!0),s=o("WeakMap.prototype.get",!0),l=o("WeakMap.prototype.set",!0),f=o("WeakMap.prototype.has",!0),d=o("Map.prototype.get",!0),p=o("Map.prototype.set",!0),h=o("Map.prototype.has",!0),y=function(t,e){for(var n,r=t;null!==(n=r.next);r=n)if(n.key===e)return r.next=n.next,n.next=t.next,t.next=n,n};t.exports=function(){var t,e,n,r={assert:function(t){if(!r.has(t))throw new a("Side channel does not contain "+i(t))},get:function(r){if(u&&r&&("object"==typeof r||"function"==typeof r)){if(t)return s(t,r)}else if(c){if(e)return d(e,r)}else if(n)return function(t,e){var n=y(t,e);return n&&n.value}(n,r)},has:function(r){if(u&&r&&("object"==typeof r||"function"==typeof r)){if(t)return f(t,r)}else if(c){if(e)return h(e,r)}else if(n)return function(t,e){return!!y(t,e)}(n,r);return!1},set:function(r,o){u&&r&&("object"==typeof r||"function"==typeof r)?(t||(t=new u),l(t,r,o)):c?(e||(e=new c),p(e,r,o)):(n||(n={key:{},next:null}),function(t,e,n){var r=y(t,e);r?r.value=n:t.next={key:e,next:t.next,value:n}}(n,r,o))}};return r}},172:function(t,e,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,o=n(173);t.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&o()}},173:function(t,e,n){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),n=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var r=Object.getOwnPropertySymbols(t);if(1!==r.length||r[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,e);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},174:function(t,e,n){"use strict";var r=Array.prototype.slice,o=Object.prototype.toString;t.exports=function(t){var e=this;if("function"!=typeof e||"[object Function]"!==o.call(e))throw new TypeError("Function.prototype.bind called on incompatible "+e);for(var n,i=r.call(arguments,1),a=Math.max(0,e.length-i.length),u=[],c=0;c-1?o(n):n}},177:function(t,e,n){"use strict";var r=n(42),o=n(41),i=o("%Function.prototype.apply%"),a=o("%Function.prototype.call%"),u=o("%Reflect.apply%",!0)||r.call(a,i),c=o("%Object.getOwnPropertyDescriptor%",!0),s=o("%Object.defineProperty%",!0),l=o("%Math.max%");if(s)try{s({},"a",{value:1})}catch(t){s=null}t.exports=function(t){var e=u(r,a,arguments);return c&&s&&c(e,"length").configurable&&s(e,"length",{value:1+l(0,t.length-(arguments.length-1))}),e};var f=function(){return u(r,i,arguments)};s?s(t.exports,"apply",{value:f}):t.exports.apply=f},178:function(t,e,n){var r="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=r&&o&&"function"==typeof o.get?o.get:null,a=r&&Map.prototype.forEach,u="function"==typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&u?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,s=u&&c&&"function"==typeof c.get?c.get:null,l=u&&Set.prototype.forEach,f="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,d="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,p="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,h=Boolean.prototype.valueOf,y=Object.prototype.toString,v=Function.prototype.toString,m=String.prototype.match,g=String.prototype.slice,b=String.prototype.replace,w=String.prototype.toUpperCase,x=String.prototype.toLowerCase,_=RegExp.prototype.test,S=Array.prototype.concat,E=Array.prototype.join,j=Array.prototype.slice,O=Math.floor,k="function"==typeof BigInt?BigInt.prototype.valueOf:null,A=Object.getOwnPropertySymbols,C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,P="function"==typeof Symbol&&"object"==typeof Symbol.iterator,I="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,T=Object.prototype.propertyIsEnumerable,N=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function R(t,e){if(t===1/0||t===-1/0||t!=t||t&&t>-1e3&&t<1e3||_.call(/e/,e))return e;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof t){var r=t<0?-O(-t):O(t);if(r!==t){var o=String(r),i=g.call(e,o.length+1);return b.call(o,n,"$&_")+"."+b.call(b.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(e,n,"$&_")}var U=n(179),L=U.custom,B=V(L)?L:null;function F(t,e,n){var r="double"===(n.quoteStyle||e)?'"':"'";return r+t+r}function M(t){return b.call(String(t),/"/g,""")}function D(t){return!("[object Array]"!==W(t)||I&&"object"==typeof t&&I in t)}function q(t){return!("[object RegExp]"!==W(t)||I&&"object"==typeof t&&I in t)}function V(t){if(P)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!C)return!1;try{return C.call(t),!0}catch(t){}return!1}t.exports=function t(e,n,r,o){var u=n||{};if(z(u,"quoteStyle")&&"single"!==u.quoteStyle&&"double"!==u.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(z(u,"maxStringLength")&&("number"==typeof u.maxStringLength?u.maxStringLength<0&&u.maxStringLength!==1/0:null!==u.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var c=!z(u,"customInspect")||u.customInspect;if("boolean"!=typeof c&&"symbol"!==c)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(z(u,"indent")&&null!==u.indent&&"\t"!==u.indent&&!(parseInt(u.indent,10)===u.indent&&u.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(z(u,"numericSeparator")&&"boolean"!=typeof u.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var y=u.numericSeparator;if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return function t(e,n){if(e.length>n.maxStringLength){var r=e.length-n.maxStringLength,o="... "+r+" more character"+(r>1?"s":"");return t(g.call(e,0,n.maxStringLength),n)+o}return F(b.call(b.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,G),"single",n)}(e,u);if("number"==typeof e){if(0===e)return 1/0/e>0?"0":"-0";var w=String(e);return y?R(e,w):w}if("bigint"==typeof e){var _=String(e)+"n";return y?R(e,_):_}var O=void 0===u.depth?5:u.depth;if(void 0===r&&(r=0),r>=O&&O>0&&"object"==typeof e)return D(e)?"[Array]":"[Object]";var A=function(t,e){var n;if("\t"===t.indent)n="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;n=E.call(Array(t.indent+1)," ")}return{base:n,prev:E.call(Array(e+1),n)}}(u,r);if(void 0===o)o=[];else if($(o,e)>=0)return"[Circular]";function L(e,n,i){if(n&&(o=j.call(o)).push(n),i){var a={depth:u.depth};return z(u,"quoteStyle")&&(a.quoteStyle=u.quoteStyle),t(e,a,r+1,o)}return t(e,u,r+1,o)}if("function"==typeof e&&!q(e)){var H=function(t){if(t.name)return t.name;var e=m.call(v.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}(e),Y=Z(e,L);return"[Function"+(H?": "+H:" (anonymous)")+"]"+(Y.length>0?" { "+E.call(Y,", ")+" }":"")}if(V(e)){var tt=P?b.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):C.call(e);return"object"!=typeof e||P?tt:J(tt)}if(function(t){return!(!t||"object"!=typeof t)&&("undefined"!=typeof HTMLElement&&t instanceof HTMLElement||"string"==typeof t.nodeName&&"function"==typeof t.getAttribute)}(e)){for(var et="<"+x.call(String(e.nodeName)),nt=e.attributes||[],rt=0;rt"}if(D(e)){if(0===e.length)return"[]";var ot=Z(e,L);return A&&!function(t){for(var e=0;e=0)return!1;return!0}(ot)?"["+X(ot,A)+"]":"[ "+E.call(ot,", ")+" ]"}if(function(t){return!("[object Error]"!==W(t)||I&&"object"==typeof t&&I in t)}(e)){var it=Z(e,L);return"cause"in Error.prototype||!("cause"in e)||T.call(e,"cause")?0===it.length?"["+String(e)+"]":"{ ["+String(e)+"] "+E.call(it,", ")+" }":"{ ["+String(e)+"] "+E.call(S.call("[cause]: "+L(e.cause),it),", ")+" }"}if("object"==typeof e&&c){if(B&&"function"==typeof e[B]&&U)return U(e,{depth:O-r});if("symbol"!==c&&"function"==typeof e.inspect)return e.inspect()}if(function(t){if(!i||!t||"object"!=typeof t)return!1;try{i.call(t);try{s.call(t)}catch(t){return!0}return t instanceof Map}catch(t){}return!1}(e)){var at=[];return a.call(e,(function(t,n){at.push(L(n,e,!0)+" => "+L(t,e))})),K("Map",i.call(e),at,A)}if(function(t){if(!s||!t||"object"!=typeof t)return!1;try{s.call(t);try{i.call(t)}catch(t){return!0}return t instanceof Set}catch(t){}return!1}(e)){var ut=[];return l.call(e,(function(t){ut.push(L(t,e))})),K("Set",s.call(e),ut,A)}if(function(t){if(!f||!t||"object"!=typeof t)return!1;try{f.call(t,f);try{d.call(t,d)}catch(t){return!0}return t instanceof WeakMap}catch(t){}return!1}(e))return Q("WeakMap");if(function(t){if(!d||!t||"object"!=typeof t)return!1;try{d.call(t,d);try{f.call(t,f)}catch(t){return!0}return t instanceof WeakSet}catch(t){}return!1}(e))return Q("WeakSet");if(function(t){if(!p||!t||"object"!=typeof t)return!1;try{return p.call(t),!0}catch(t){}return!1}(e))return Q("WeakRef");if(function(t){return!("[object Number]"!==W(t)||I&&"object"==typeof t&&I in t)}(e))return J(L(Number(e)));if(function(t){if(!t||"object"!=typeof t||!k)return!1;try{return k.call(t),!0}catch(t){}return!1}(e))return J(L(k.call(e)));if(function(t){return!("[object Boolean]"!==W(t)||I&&"object"==typeof t&&I in t)}(e))return J(h.call(e));if(function(t){return!("[object String]"!==W(t)||I&&"object"==typeof t&&I in t)}(e))return J(L(String(e)));if(!function(t){return!("[object Date]"!==W(t)||I&&"object"==typeof t&&I in t)}(e)&&!q(e)){var ct=Z(e,L),st=N?N(e)===Object.prototype:e instanceof Object||e.constructor===Object,lt=e instanceof Object?"":"null prototype",ft=!st&&I&&Object(e)===e&&I in e?g.call(W(e),8,-1):lt?"Object":"",dt=(st||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(ft||lt?"["+E.call(S.call([],ft||[],lt||[]),": ")+"] ":"");return 0===ct.length?dt+"{}":A?dt+"{"+X(ct,A)+"}":dt+"{ "+E.call(ct,", ")+" }"}return String(e)};var H=Object.prototype.hasOwnProperty||function(t){return t in this};function z(t,e){return H.call(t,e)}function W(t){return y.call(t)}function $(t,e){if(t.indexOf)return t.indexOf(e);for(var n=0,r=t.length;n-1?t.split(","):t},s=function(t,e,n,r){if(t){var i=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/g,u=n.depth>0&&/(\[[^[\]]*])/.exec(i),s=u?i.slice(0,u.index):i,l=[];if(s){if(!n.plainObjects&&o.call(Object.prototype,s)&&!n.allowPrototypes)return;l.push(s)}for(var f=0;n.depth>0&&null!==(u=a.exec(i))&&f=0;--i){var a,u=t[i];if("[]"===u&&n.parseArrays)a=[].concat(o);else{a=n.plainObjects?Object.create(null):{};var s="["===u.charAt(0)&&"]"===u.charAt(u.length-1)?u.slice(1,-1):u,l=parseInt(s,10);n.parseArrays||""!==s?!isNaN(l)&&u!==s&&String(l)===s&&l>=0&&n.parseArrays&&l<=n.arrayLimit?(a=[])[l]=o:"__proto__"!==s&&(a[s]=o):a={0:o}}o=a}return o}(l,e,n,r)}};t.exports=function(t,e){var n=function(t){if(!t)return a;if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e=void 0===t.charset?a.charset:t.charset;return{allowDots:void 0===t.allowDots?a.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof t.allowSparse?t.allowSparse:a.allowSparse,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:a.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:a.comma,decoder:"function"==typeof t.decoder?t.decoder:a.decoder,delimiter:"string"==typeof t.delimiter||r.isRegExp(t.delimiter)?t.delimiter:a.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:a.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:a.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:a.strictNullHandling}}(e);if(""===t||null==t)return n.plainObjects?Object.create(null):{};for(var l="string"==typeof t?function(t,e){var n,s={},l=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,f=e.parameterLimit===1/0?void 0:e.parameterLimit,d=l.split(e.delimiter,f),p=-1,h=e.charset;if(e.charsetSentinel)for(n=0;n-1&&(v=i(v)?[v]:v),o.call(s,y)?s[y]=r.combine(s[y],v):s[y]=v}return s}(t,n):t,f=n.plainObjects?Object.create(null):{},d=Object.keys(l),p=0;p0&&void 0!==arguments[0]?arguments[0]:{},n=t.accessToken,r=t.expiresIn;if(!n||!r)throw new Error("Expected accessToken and expiresIn from silent response");e.accessToken=n,e.logger&&e.logger.info("Silently authed for ".concat(r," seconds"))})).catch((function(t){e.logger&&e.logger.info("silent fail",t),e._silentError=t}))}},{key:"interactive",value:function(t){var e={client_id:this.clientId,response_type:"token",redirect_uri:"".concat(this.redirectUrl).concat(this.redirectPaths.popup),scope:this.auth.baseOptions.scope,provider:t,login_hint:void 0};this.loginHint&&(e.login_hint=this.loginHint);var n=u.default.stringify(this.auth.popup.getPopupHandler({}).calculatePosition({}),{delimiter:","});window.open("".concat(this.redirectUrl).concat(this.redirectPaths.authorize,"?").concat(u.default.stringify(e)),"Log in or Sign up - Viyard",n)}},{key:"setAuthentication",value:function(t){if(this.isAuthenticated)return i.default({},t,{headers:{Authorization:"Bearer ".concat(this.accessToken)}});throw new Error("Access token is not set")}},{key:"resetAuthentication",value:function(){this.accessToken=""}},{key:"getUser",value:function(){return this.userUuid?{id:this.userUuid,uuid:this.userUuid}:null}},{key:"addAuthenticationChangedHandler",value:function(t){this._handlers.push(t)}},{key:"removeAuthenticationChangedHandler",value:function(t){this._handlers=this._handlers.filter((function(e){return e!==t}))}},{key:"isAuthenticated",get:function(){return""!==this.accessToken}},{key:"accessToken",get:function(){return this._accessToken},set:function(t){var e=this.isAuthenticated,n=""!==t&&!!t,r={aud:void 0,exp:void 0,sub:void 0};if(n){try{r=a.default(t)}catch(t){this.logger&&this.logger.warning("Invalid Token Decoded",t),r={aud:"invalid",exp:"0",sub:void 0}}var o=new Date(1e3*parseInt(r.exp,10)),i=new Date;n=(n=n&&r.aud===this.clientId)&&i<=o}if(n){this._accessToken=t,s.storage.setItem(this.storage,t);var u=r.sub;this.loginHint=u,this.userUuid=u}else this._accessToken="",this.userUuid=void 0,s.storage.removeItem(this.storage);e!==this.isAuthenticated&&this._handlers.forEach((function(t){return t(n)}))}}])&&r(e.prototype,n),t}();e.default=f},210:function(t,e,n){"use strict";var r=n(211);function o(t){this.message=t}o.prototype=new Error,o.prototype.name="InvalidTokenError",t.exports=function(t,e){if("string"!=typeof t)throw new o("Invalid token specified");var n=!0===(e=e||{}).header?0:1;try{return JSON.parse(r(t.split(".")[n]))}catch(t){throw new o("Invalid token specified: "+t.message)}},t.exports.InvalidTokenError=o},211:function(t,e,n){var r=n(212);t.exports=function(t){var e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw"Illegal base64url string!"}try{return function(t){return decodeURIComponent(r(t).replace(/(.)/g,(function(t,e){var n=e.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(e)}catch(t){return r(e)}}},212:function(t,e){function n(t){this.message=t}n.prototype=new Error,n.prototype.name="InvalidCharacterError",t.exports="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(t){var e=String(t).replace(/=+$/,"");if(e.length%4==1)throw new n("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,o,i=0,a=0,u="";o=e.charAt(a++);~o&&(r=i%4?64*r+o:o,i++%4)?u+=String.fromCharCode(255&r>>(-2*i&6)):0)o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(o);return u}},213:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=r(n(205));e.default=function(t){var e=t.multipassUrl,n=t.scopes;return new o.default.WebAuth({domain:e,clientID:"ignore",scope:n.join(" "),audience:"ignored",responseType:"token",_sendTelemetry:!1,__tryLocalStorageFirst:!0})}},214:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.storage=e.localStorageAvailable=void 0;var o=r(n(18));e.localStorageAvailable=function(){try{return"localStorage"in window&&(localStorage.setItem("test","testvalue"),localStorage.removeItem("test"),!0)}catch(t){return!1}},e.storage={getItem:function(t){return e.localStorageAvailable()?localStorage.getItem(t):o.default.get(t)},setItem:function(t,n){return e.localStorageAvailable()?localStorage.setItem(t,n):o.default.set(t,n)},removeItem:function(t){return e.localStorageAvailable()?localStorage.removeItem(t):o.default.remove(t)}}},215:function(t,e,n){"use strict";function r(t,e){for(var n=0;n=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([n]):a[e]?a[e]+", "+n:n}})),a):a}},232:function(t,e,n){"use strict";var r=n(10);t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=o(window.location.href),function(e){var n=r.isString(e)?o(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},233:function(t,e,n){"use strict";var r=n(116).version,o={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){o[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}}));var i={};o.transitional=function(t,e,n){function o(t,e){return"[Axios v"+r+"] Transitional option '"+t+"'"+e+(n?". "+n:"")}return function(n,r,a){if(!1===t)throw new Error(o(r," has been removed"+(e?" in "+e:"")));return e&&!i[r]&&(i[r]=!0,console.warn(o(r," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,r,a)}},t.exports={assertOptions:function(t,e,n){if("object"!=typeof t)throw new TypeError("options must be an object");for(var r=Object.keys(t),o=r.length;o-- >0;){var i=r[o],a=e[i];if(a){var u=t[i],c=void 0===u||a(u,i,t);if(!0!==c)throw new TypeError("option "+i+" must be "+c)}else if(!0!==n)throw Error("Unknown option "+i)}},validators:o}},234:function(t,e,n){"use strict";var r=n(47);function o(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;this.promise.then((function(t){if(n._listeners){var e,r=n._listeners.length;for(e=0;e1&&"boolean"!=typeof e)throw new i('"allowMissing" argument must be a boolean');if(null===_(/^%?[^%]*%?$/g,t))throw new r("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(t){var e=x(t,0,1),n=x(t,-1);if("%"===e&&"%"!==n)throw new r("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==e)throw new r("invalid intrinsic syntax, expected opening `%`");var o=[];return w(t,S,(function(t,e,n,r){o[o.length]=n?w(r,E,"$1"):e||t})),o}(t),o=n.length>0?n[0]:"",a=j("%"+o+"%",e),c=a.name,s=a.value,l=!1,f=a.alias;f&&(o=f[0],b(n,g([0,1],f)));for(var d=1,p=!0;d=n.length){var k=u(s,y);s=(p=!!k)&&"get"in k&&!("originalValue"in k.get)?k.get:s[y]}else p=m(s,y),s=s[y];p&&!l&&(h[c]=s)}}return s}},42:function(t,e,n){"use strict";var r=n(174);t.exports=Function.prototype.bind||r},43:function(t,e,n){"use strict";var r=String.prototype.replace,o=/%20/g,i="RFC3986";t.exports={default:i,formatters:{RFC1738:function(t){return r.call(t,o,"+")},RFC3986:function(t){return String(t)}},RFC1738:"RFC1738",RFC3986:i}},46:function(t,e,n){var r=n(103),o=n(164),i=n(36);t.exports=function(t){return i(t)?r(t,!0):o(t)}},47:function(t,e,n){"use strict";function r(t){this.message=t}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,t.exports=r},48:function(t,e,n){(function(e){t.exports=e._=n(55)}).call(this,n(2))},51:function(t,e,n){var r=n(158),o=n(14),i=Object.prototype,a=i.hasOwnProperty,u=i.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(t){return o(t)&&a.call(t,"callee")&&!u.call(t,"callee")};t.exports=c},52:function(t,e,n){(function(t){var r=n(12),o=n(159),i=e&&!e.nodeType&&e,a=i&&"object"==typeof t&&t&&!t.nodeType&&t,u=a&&a.exports===i?r.Buffer:void 0,c=(u?u.isBuffer:void 0)||o;t.exports=c}).call(this,n(24)(t))},53:function(t,e){var n=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&n.test(t))&&t>-1&&t%1==0&&t=0&&n<=o.b}}function U(t){return function(e){return null==e?void 0:e[t]}}var L=U("byteLength"),B=R(L),F=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/,M=o.r?function(t){return o.l?Object(o.l)(t)&&!O(t):B(t)&&F.test(o.t.call(t))}:N(!1),D=U("length");function q(t,e){e=function(t){for(var e={},n=t.length,r=0;r":">",'"':""","'":"'","`":"`"},Dt=Ft(Mt),qt=Ft(lt(Mt)),Vt=W.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Ht=/(.)^/,zt={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Wt=/\\|'|\r|\n|\u2028|\u2029/g;function $t(t){return"\\"+zt[t]}var Gt=/^\s*(\w|\$)+\s*$/;function Jt(t,e,n){!e&&n&&(e=n),e=yt({},e,W.templateSettings);var r=RegExp([(e.escape||Ht).source,(e.interpolate||Ht).source,(e.evaluate||Ht).source].join("|")+"|$","g"),o=0,i="__p+='";t.replace(r,(function(e,n,r,a,u){return i+=t.slice(o,u).replace(Wt,$t),o=u+e.length,n?i+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?i+="'+\n((__t=("+r+"))==null?'':__t)+\n'":a&&(i+="';\n"+a+"\n__p+='"),e})),i+="';\n";var a,u=e.variable;if(u){if(!Gt.test(u))throw new Error("variable is not a bare identifier: "+u)}else i="with(obj||{}){\n"+i+"}\n",u="obj";i="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+i+"return __p;\n";try{a=new Function(u,"_",i)}catch(t){throw t.source=i,t}var c=function(t){return a.call(this,t,W)};return c.source="function("+u+"){\n"+i+"}",c}function Qt(t,e,n){var r=(e=xt(e)).length;if(!r)return x(n)?n.call(t):n;for(var o=0;o1)oe(u,e-1,n,r),o=r.length;else for(var c=0,s=u.length;ce?(r&&(clearTimeout(r),r=null),u=s,a=t.apply(o,i),r||(o=i=null)):r||!1===n.trailing||(r=setTimeout(c,l)),a};return s.cancel=function(){clearTimeout(r),u=0,r=o=i=null},s}function le(t,e,n){var r,o,a,u,c,s=function(){var i=Bt()-o;e>i?r=setTimeout(s,e-i):(r=null,n||(u=t.apply(c,a)),r||(a=c=null))},l=i((function(i){return c=this,a=i,o=Bt(),r||(r=setTimeout(s,e),n&&(u=t.apply(c,a))),u}));return l.cancel=function(){clearTimeout(r),r=a=c=null},l}function fe(t,e){return ee(e,t)}function de(t){return function(){return!t.apply(this,arguments)}}function pe(){var t=arguments,e=t.length-1;return function(){for(var n=e,r=t[e].apply(this,arguments);n--;)r=t[n].call(this,r);return r}}function he(t,e){return function(){if(--t<1)return e.apply(this,arguments)}}function ye(t,e){var n;return function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=null),n}}var ve=ee(ye,2);function me(t,e,n){e=It(e,n);for(var r,o=V(t),i=0,a=o.length;i0?0:o-1;i>=0&&i0?u=a>=0?a:Math.max(a+c,u):c=a>=0?Math.min(a+1,c):a+c+1;else if(n&&a&&c)return r[a=n(r,i)]===i?a:-1;if(i!=i)return(a=e(o.q.call(r,u,c),T))>=0?a+u:-1;for(a=t>0?u:c-1;a>=0&&a=3;return function(e,n,r,o){var i=!re(e)&&V(e),a=(i||e).length,u=t>0?0:a-1;for(o||(r=e[i?i[u]:u],u+=t);u>=0&&u=0}var Be=i((function(t,e,n){var r,o;return x(e)?o=e:(e=xt(e),r=e.slice(0,-1),e=e[e.length-1]),Ae(t,(function(t){var i=o;if(!i){if(r&&r.length&&(t=_t(t,r)),null==t)return;i=t[e]}return null==i?i:i.apply(t,n)}))}));function Fe(t,e){return Ae(t,kt(e))}function Me(t,e){return Te(t,Ot(e))}function De(t,e,n){var r,o,i=-1/0,a=-1/0;if(null==e||"number"==typeof e&&"object"!=typeof t[0]&&null!=t)for(var u=0,c=(t=re(t)?t:ct(t)).length;ui&&(i=r);else e=It(e,n),ke(t,(function(t,n,r){((o=e(t,n,r))>a||o===-1/0&&i===-1/0)&&(i=t,a=o)}));return i}function qe(t,e,n){var r,o,i=1/0,a=1/0;if(null==e||"number"==typeof e&&"object"!=typeof t[0]&&null!=t)for(var u=0,c=(t=re(t)?t:ct(t)).length;ur||void 0===n)return 1;if(n1&&(r=At(r,e[1])),e=K(t)):(r=Ye,e=oe(e,!1,!1),t=Object(t));for(var o=0,i=e.length;o1&&(n=e[1])):(e=Ae(oe(e,!1,!1),String),r=function(t,n){return!Le(e,n)}),tn(t,r,n)}));function nn(t,e,n){return o.q.call(t,0,Math.max(0,t.length-(null==e||n?1:e)))}function rn(t,e,n){return null==t||t.length<1?null==e||n?void 0:[]:null==e||n?t[0]:nn(t,t.length-e)}function on(t,e,n){return o.q.call(t,null==e||n?1:e)}function an(t,e,n){return null==t||t.length<1?null==e||n?void 0:[]:null==e||n?t[t.length-1]:on(t,Math.max(0,t.length-e))}function un(t){return Te(t,Boolean)}function cn(t,e){return oe(t,e,!1)}var sn=i((function(t,e){return e=oe(e,!0,!0),Te(t,(function(t){return!Le(e,t)}))})),ln=i((function(t,e){return sn(t,e)}));function fn(t,e,n,r){s(e)||(r=n,n=e,e=!1),null!=n&&(n=It(n,r));for(var o=[],i=[],a=0,u=D(t);a-1&&t%1==0&&t<=9007199254740991}},60:function(t,e,n){var r=n(161),o=n(75),i=n(86),a=i&&i.isTypedArray,u=a?o(a):r;t.exports=u},62:function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(this,n(2))},63:function(t,e,n){var r=n(40),o=n(20);t.exports=function(t,e,n){(void 0===n||o(t[e],n))&&(void 0!==n||e in t)||r(t,e,n)}},64:function(t,e,n){var r=n(27),o=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},65:function(t,e){t.exports=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}},66:function(t,e,n){var r=n(87),o=n(40);t.exports=function(t,e,n,i){var a=!n;n||(n={});for(var u=-1,c=e.length;++u1;){var e=t.pop(),n=e.obj[e.prop];if(i(n)){for(var r=[],o=0;o=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||i===r.RFC1738&&(40===l||41===l)?c+=u.charAt(s):l<128?c+=a[l]:l<2048?c+=a[192|l>>6]+a[128|63&l]:l<55296||l>=57344?c+=a[224|l>>12]+a[128|l>>6&63]+a[128|63&l]:(s+=1,l=65536+((1023&l)<<10|1023&u.charCodeAt(s)),c+=a[240|l>>18]+a[128|l>>12&63]+a[128|l>>6&63]+a[128|63&l])}return c},isBuffer:function(t){return!(!t||"object"!=typeof t||!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t)))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(i(t)){for(var n=[],r=0;r=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(t){l.headers[t]={}})),r.forEach(["post","put","patch"],(function(t){l.headers[t]=r.merge(u)})),t.exports=l}).call(this,n(94))},71:function(t,e,n){"use strict";var r=n(170),o=n(180),i=n(43);t.exports={formats:i,parse:o,stringify:r}},72:function(t,e,n){t.exports=n(220)},75:function(t,e){t.exports=function(t){return function(e){return t(e)}}},76:function(t,e){t.exports=function(t){function e(t){"undefined"!=typeof console&&(console.error||console.log)("[Script Loader]",t)}try{"undefined"!=typeof execScript&&"undefined"!=typeof attachEvent&&"undefined"==typeof addEventListener?execScript(t):"undefined"!=typeof eval?eval.call(null,t):e("EvalError: No eval function available")}catch(t){e(t)}}},78:function(t,e,n){var r=n(82),o=n(104)((function(t,e,n){r(t,e,n)}));t.exports=o},79:function(t,e,n){"use strict";n.r(e),n.d(e,"localStorageAvailable",(function(){return i})),n.d(e,"storage",(function(){return a}));var r=n(18),o=n.n(r),i=function(){try{return"localStorage"in window&&(localStorage.setItem("test","testvalue"),localStorage.removeItem("test"),!0)}catch(t){return!1}},a={getItem:function(t){return i()?localStorage.getItem(t):o.a.get(t)},setItem:function(t,e){return i()?localStorage.setItem(t,e):o.a.set(t,e)},removeItem:function(t){return i()?localStorage.removeItem(t):o.a.remove(t)}}},82:function(t,e,n){var r=n(83),o=n(63),i=n(154),a=n(156),u=n(11),c=n(46),s=n(65);t.exports=function t(e,n,l,f,d){e!==n&&i(n,(function(i,c){if(d||(d=new r),u(i))a(e,n,c,l,t,f,d);else{var p=f?f(s(e,c),i,c+"",e,n,d):void 0;void 0===p&&(p=i),o(e,c,p)}}),c)}},83:function(t,e,n){var r=n(25),o=n(131),i=n(132),a=n(133),u=n(134),c=n(135);function s(t){var e=this.__data__=new r(t);this.size=e.size}s.prototype.clear=o,s.prototype.delete=i,s.prototype.get=a,s.prototype.has=u,s.prototype.set=c,t.exports=s},84:function(t,e,n){var r=n(142),o=n(149),i=n(151),a=n(152),u=n(153);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e-1&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^\()]*)|(\)\,.*$)/g,""));var n=e.replace(/^\s+/,"").replace(/\(eval code/g,"(").split(/\s+/).slice(1),r=this.extractLocation(n.pop()),o=n.join(" ")||void 0,i=["eval",""].indexOf(r[0])>-1?void 0:r[0];return new t({functionName:o,fileName:i,lineNumber:r[1],columnNumber:r[2],source:e})}),this)},parseFFOrSafari:function(e){var n=e.stack.split("\n").filter((function(t){return!t.match(r)}),this);return n.map((function(e){if(e.indexOf(" > eval")>-1&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval\:\d+\:\d+/g,":$1")),-1===e.indexOf("@")&&-1===e.indexOf(":"))return new t({functionName:e});var n=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=e.match(n),o=r&&r[1]?r[1]:void 0,i=this.extractLocation(e.replace(n,""));return new t({functionName:o,fileName:i[0],lineNumber:i[1],columnNumber:i[2],source:e})}),this)},parseOpera:function(t){return!t.stacktrace||t.message.indexOf("\n")>-1&&t.message.split("\n").length>t.stacktrace.split("\n").length?this.parseOpera9(t):t.stack?this.parseOpera11(t):this.parseOpera10(t)},parseOpera9:function(e){for(var n=/Line (\d+).*script (?:in )?(\S+)/i,r=e.message.split("\n"),o=[],i=2,a=r.length;i/,"$2").replace(/\([^\)]*\)/g,"")||void 0;i.match(/\(([^\)]*)\)/)&&(n=i.replace(/^[^\(]+\(([^\)]*)\)$/,"$1"));var u=void 0===n||"[arguments not available]"===n?void 0:n.split(",");return new t({functionName:a,args:u,fileName:o[0],lineNumber:o[1],columnNumber:o[2],source:e})}),this)}}})?r.apply(e,o):r)||(t.exports=i)}()},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t){var e=void 0===t?{emit:!1,logger:console.log}:t,n=e.emit,r=e.logger;this.emit=n,this.externalLogger=r,this.buffer=[],this.customLevel={},this.error=this.setLevel(1),this.warn=this.setLevel(2),this.info=this.setLevel(3),this.log=this.setLevel(4)}return t.prototype.getLogs=function(t){return"function"==typeof t?this.buffer.filter((function(e){return e.level===t.level})):t?this.buffer.filter((function(e){return e.level===t})):this.buffer},t.prototype.setLevel=function(t){var e=this,n=function(){for(var n=[],r=0;r'+(n='',("inline"===t.type?'
'+n+"
":n)+"")},q=function(t){return new u((function(e,n){return H({error:n,success:e,url:""+C()+t+"/style.js",uuid:"style_"+t})}))},V={},H=function(t){var e=t.url,n=t.uuid,r=t.success,o=t.error,i=n.replace(/-/g,""),a=function(t){var e=t.error,n=t.url,r=t.requestUuid,o=document.createElement("script");return o.type="application/javascript",o.onerror=e,o.src=n+"?callback=window.VidyardV4.jsonp."+r+".done",o.setAttribute("data-playbackurl",A()),document.body.appendChild(o),o}({error:o,url:e,requestUuid:i}),u=h((function(t){r(t),a.parentNode.removeChild(a)}));V[i]=V[i]||[],V[i].push(u),window.VidyardV4.jsonp[i]={done:function(t){V[i].forEach((function(e){return e(t)}))}}},z={placeholder:"Cannot render the player, check the placeholder Image"},W=function(t){if(!t)return u.reject(new Error(z.placeholder));var e=m(t),n=e.width,r=e.height,o=t.getAttribute("data-uuid");return""!==t.src&&o&&(!t.complete||0!==n&&0!==r)?t.complete?u.resolve(t):new u((function(e,n){t.onload=function(){return e(t)},t.onerror=function(){return n(t)}})):u.reject(new Error(z.placeholder))},$=function(t){void 0===t&&(t={});var e=t.uuid,n=t.container,r=t.type,o=void 0===r?"inline":r,i=(t.aspect,function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o=638;_(n.container,"playlist-open",t)}n.on("sidePlaylistOpen",(function(){l()})),u.race([a,s]).then((function(){r("player or iFrame is ready"),function(){return n.placeholder.src!=="//"+A()+"/"+n.uuid+".jpg"?(t=n.uuid,e=document.createElement("img"),e.setAttribute("data-uuid",t),e.src="//"+A()+"/"+t+".jpg",W(e)).then(f).catch((function(){return!1})):u.resolve(!1);var t,e}().then((function(t){t&&(i.parentElement.parentElement.style.paddingBottom=t+"%")}));var t=document.getElementsByClassName("vidyard-inner-container-"+n.uuid)[0];n.placeholder.parentElement.removeChild(n.placeholder),_(n.placeholder,"inserted",!0),t.appendChild(n.placeholder),i.parentElement.parentElement.style.position="relative",i.style.opacity="1"})),a.then((function(){n.placeholder.style.display="none",i.parentElement.parentElement.style.backgroundColor="transparent"})),r("getStyle sent"),q(n.uuid).then((function(t){r("getStyle received: "+JSON.stringify(t)),1===t.pl&&"0"!==e.playlist_always_open||"1"===e.playlist_always_open?(n.iframe.parentElement.setAttribute("data-pl","true"),c("resize","onresize",l),l()):n.iframe.parentElement.setAttribute("data-pl","false")}))},J=function(t){for(var e=Array(t.length),n=0;n=0})).sort(Y)},et=["button:enabled:not([readonly])","select:enabled:not([readonly])","textarea:enabled:not([readonly])","input:enabled:not([readonly])","a[href]","area[href]","iframe","object","embed","[tabindex]","[contenteditable]","[autofocus]"],nt=et.join(","),rt=nt+", [data-focus-guard]",ot=function(t,e){return t.reduce((function(t,n){return t.concat(J(n.querySelectorAll(e?rt:nt)),n.parentNode?J(n.parentNode.querySelectorAll(et.join(","))).filter((function(t){return t===n})):[])}),[])},it=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return n.push(e),e.parentNode&&t(e.parentNode,n),n},at=function(t,e){for(var n=it(t),r=it(e),o=0;o=0)return i}return!1},ut=function(t){return J(t).filter((function(t){return function t(e){return!e||e===document||e.nodeType===Node.DOCUMENT_NODE||!((n=window.getComputedStyle(e,null))&&n.getPropertyValue&&("none"===n.getPropertyValue("display")||"hidden"===n.getPropertyValue("visibility")))&&t(e.parentNode);var n}(t)})).filter((function(t){return function(t){return!(("INPUT"===t.tagName||"BUTTON"===t.tagName)&&("hidden"===t.type||t.disabled))}(t)}))},ct=function(t,e){return tt(ut(ot(t,e)),!0,e)},st=function(t){return"INPUT"===t.tagName&&"radio"===t.type},lt=function(t,e){return e.filter(st).filter((function(e){return e.name===t.name})).filter((function(t){return t.checked}))[0]||t},ft=function(t,e){return t.length>1&&st(t[e])&&t[e].name?t.indexOf(lt(t[e],t)):e},dt=function(t){return t[0]&&t.length>1&&st(t[0])&&t[0].name?lt(t[0],t):t[0]},pt=function(t){return t&&t.dataset&&t.dataset.focusGuard},ht=function(t){return!pt(t)},yt=function(t,e){var n=document&&document.activeElement,r=X(t).filter(ht),o=function(t,e,n){var r=Q(t),o=Q(e),i=r[0],a=null;return o.filter(Boolean).forEach((function(t){a=at(a||t,t)||a,n.filter(Boolean).forEach((function(t){var e=at(i,t);e&&(a=!a||e.contains(a)?e:at(e,a))}))})),a}(n||t,t,r),i=ct(r).filter((function(t){var e=t.node;return ht(e)}));if(i[0]||(i=(a=r,tt(ut(ot(a)),!1)).filter((function(t){var e=t.node;return ht(e)})))[0]){var a,u,c,s,l,f=ct([o]).map((function(t){return t.node})),d=(u=f,c=i,s=new Map,c.forEach((function(t){return s.set(t.node,t)})),u.map((function(t){return s.get(t)})).filter(Boolean)),p=d.map((function(t){return t.node})),h=function(t,e,n,r,o){var i=t.length,a=t[0],u=t[i-1],c=pt(n);if(!(t.indexOf(n)>=0)){var s=e.indexOf(n),l=e.indexOf(r||s),f=t.indexOf(r),d=s-l,p=e.indexOf(a),h=e.indexOf(u),y=ft(t,0),v=ft(t,i-1);return-1===s||-1===f?t.indexOf(o&&o.length?dt(o):dt(t)):!d&&f>=0?f:s<=p&&c&&Math.abs(d)>1?v:s>=p&&c&&Math.abs(d)>1?y:d&&Math.abs(d)>1?f:s<=p?v:s>h?y:d?Math.abs(d)>1?f:(i+f+d)%i:void 0}}(p,f,n,e,p.filter((l=function(t){return t.reduce((function(t,e){return t.concat(function(t){return ut((e=t.querySelectorAll("[data-autofocus-inside]"),J(e).map((function(t){return ot([t])})).reduce((function(t,e){return t.concat(e)}),[])));var e}(e))}),[])}(r),function(t){return!!t.autofocus||t.dataset&&!!t.dataset.autofocus||l.indexOf(t)>=0})));return void 0===h?h:d[h]}},vt=0,mt=!1,gt=0,bt=null,wt=function(){return document&&document.activeElement===document.body||document&&J(document.querySelectorAll("[data-no-focus-lock]")).some((function(t){return t.contains(document.activeElement)}))},xt=function(t){gt=t,t&&function(){if(gt){var t=gt;wt()||(t&&!function(t){var e=document&&document.activeElement;return!(!e||e.dataset&&e.dataset.focusGuard)&&X(t).reduce((function(t,n){return t||n.contains(e)||(r=J(n.querySelectorAll("iframe")),o=Z,!!r.filter((function(t){return t===o}))[0]);var r,o}),!1)}(t)&&function(t,e){var n,r=yt(t,e);if(!mt&&r){if(vt>2)return console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),mt=!0,void setTimeout((function(){mt=!1}),1);vt++,(n=r.node).focus(),n.contentWindow&&n.contentWindow.focus(),vt--}}(t,bt),bt=document.activeElement)}}()},_t=[],St=function(t){return!!xt((e=_t,e.filter((function(t){return t})).slice(-1)[0]))&&(t&&t.preventDefault(),!0);var e},Et=function(t){0===_t.length&&document.addEventListener("focusin",St),_t.indexOf(t)<0&&(_t.push(t),St())},jt=function(t){_t=_t.filter((function(e){return e!==t})),St(),0===_t.length&&document.removeEventListener("focusin",St)};var Ot={};function kt(t){var e=l("vidyard-lightbox-centering","div",t.container)[0];t.player.showLightbox=function(){L.setLevel(t.player.uuid)("show lightbox"),function(t){F=document.activeElement;var e=function(t,e,n){if(t&&!document.getElementById("vidyard-overlay")){var r,o,i=(r=t,(o={}).backerElement=document.createElement("div"),o.backerElement.className="vidyard-lightbox-content-backer",o.containerElement=document.createElement("div"),o.containerElement.innerHTML=r,o.containingDiv=o.containerElement.getElementsByTagName("div")[0],o.containingDiv.style.position="absolute",o.containingDiv.style.height="100%",o.containingDiv.style.width="100%",o.containingDiv.style.zIndex="2",o.iframe=o.containerElement.getElementsByTagName("iframe")[0],o.iframe.parentNode.style.position="static",o.iframe.parentNode.style.paddingBottom=0,o.iframe.style.opacity="1",setTimeout((function(){o.backerElement.style.opacity="1",o.backerElement.style.filter="alpha(opacity=100)"}),0),o),a=function(t){var e={};return e.overlay=document.createElement("div"),e.contentFixed=document.createElement("div"),e.popbox=document.createElement("div"),e.overlayWrapper=document.createElement("div"),e.closeContainer=function(){var t={};return t.closeContainer=document.createElement("div"),t.closeButton=document.createElement("div"),t.closeContainer.className="vidyard-close-container",t.closeContainer.setAttribute("aria-label","Close Player"),t.closeContainer.setAttribute("role","button"),t.closeContainer.setAttribute("tabindex","0"),t.closeButton.className="vidyard-close-x",document.documentMode<9&&(t.closeButton.className+=" simple-close",t.closeButton.innerHTML="×"),t.closeContainer.appendChild(t.closeButton),t}().closeContainer,e.overlay.id="vidyard-overlay",e.overlay.setAttribute("aria-hidden","true"),e.overlay.style.display="block",e.contentFixed.id="vidyard-content-fixed",e.contentFixed.setAttribute("aria-label","media player lightbox"),e.contentFixed.setAttribute("role","dialog"),e.contentFixed.style.display="block",e.popbox.id="vidyard-popbox",e.overlayWrapper.id="vidyard-overlay-wrapper",e.overlayWrapper.style.display="block",e.contentFixed.appendChild(e.popbox),e.overlayWrapper.appendChild(e.overlay),e.overlayWrapper.appendChild(e.closeContainer),e.overlayWrapper.appendChild(e.contentFixed),t&&(e.overlay.style.zIndex=t,e.contentFixed.style.zIndex=t+2,e.closeContainer.style.zIndex=t+1),e}(n),u=function(t){var e=l("vidyard-lightbox-image","img",t)[0].cloneNode();return e.className="",e.id="vidyard-popbox-constraint",e.alt="",e.setAttribute("aria-hidden","true"),e}(e),c=document.createElement("div");return c.id="vidyard-focusable-element",c.tabIndex=0,a.popbox.appendChild(i.backerElement),a.popbox.appendChild(i.containingDiv),a.popbox.appendChild(u),document.body.appendChild(a.overlayWrapper),document.body.appendChild(c),a.closeContainer.focus(),Et(a.overlayWrapper),setTimeout((function(){a.overlayWrapper.style.opacity="1",a.overlayWrapper.style.filter="alpha(opacity=100)"}),0),{container:i,lightbox:a}}}(t.iframe,t.container,t.overlayZindex);t.player.iframe=e.container.iframe;var n=t.player.uuid,r=e.container.iframe,o=function(t,e){return h((function(){!function(t){t.style.opacity="1"}(t),At(),Ot.parentEsc=c("keydown","onkeydown",function(t){return function(e){27===e.keyCode&&t(e)}}(Ct),document)}))}(r),i=function(t,e){return h((function(){P({uuid:e,event:"listenForKeyPress",keyCode:"27"},"https://"+A(),t)}))}(r,n);Ot.iframeLoaded=c("load","onload",o,e.container.iframe),Ot.messageHandler=c("message","onmessage",I((function(t){var e;o(),i(),"keyPressed"===(e=t).event&&27===e.params&&Ct()})),window),Ot.overlayClick=c("click","onclick",Ct,e.lightbox.overlayWrapper),Ot.fixedClick=c("click","onclick",Ct,e.lightbox.contentFixed),Ot.closeKeyPress=c("keydown","onkeydown",y(Ct),e.lightbox.closeContainer),Ot.responsivePlayerSize=c("resize","onresize",At,window)}({container:t.container,iframe:t.iframe,overlayZindex:t.overlayZindex,player:t.player})},t.player.hideLightbox=Ct,c("click","onclick",t.player.showLightbox,e),c("keydown","onkeydown",y((function(e){e.preventDefault(),t.player.showLightbox(e)})),e)}function At(){var t=document.getElementById("vidyard-popbox-constraint"),e=parseFloat((window.innerHeight/window.innerWidth*100).toFixed(2))-1&&this._callbackStore[t].splice(n,1)}else this._callbackStore[t]=[]}else for(var r in this._callbackStore)this._callbackStore.hasOwnProperty(r)&&(this._callbackStore[r]=[])},t.prototype.ready=function(){return this._ready},t.prototype.play=function(){this._message({event:"play"})},t.prototype.pause=function(){this._message({event:"pause"})},t.prototype.resume=function(){this._message({event:"resume"})},t.prototype.seek=function(t){this._message({event:"seek",position:t})},t.prototype.setVolume=function(t){this._message({event:"setVolume",newVolume:t})},t.prototype.setPlaybackSpeed=function(t){this._message({event:"setPlaybackSpeed",speed:t})},t.prototype.playChapter=function(t){this._message({chapter_index:t,event:"playChapter"})},t.prototype.setAudioTrack=function(t){this._message({audioTrackId:t,event:"setAudioTrack"})},t.prototype.enableCaption=function(t,e){this._message({event:"enableCaption",label:t,language:e})},t.prototype.disableCaption=function(t,e){this._message({event:"disableCaption",label:t,language:e})},t.prototype.consentToGDPR=function(t){this._message({consent:t,event:"consentToGDPR"})},t.prototype.createCta=function(t){this._message({attributes:function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}({display_once:!1,duration:10,fullscreen:!1,html:"",opacity:1,start:0,width:300},t),event:"createCta"})},t.prototype.updateCta=function(t,e){this._message({attributes:e,event:"updateCta",id:t})},t.prototype.addEvent=function(t){var e=t.start,n=void 0===e?0:e,r=t.duration,o=void 0===r?1:r,i=t.chapterIndex,a=void 0===i?0:i,u=t.eventId;u?this._message({chapterIndex:a,duration:o,event:"addEvent",id:u,start:n}):d("Missing arguments. Need eventId")},t.prototype.getCurrentChapter=function(){return null===this.status?null:this.status.chapterIndex},t.prototype.currentTime=function(){return null===this.status?null:this.status.currentTime},t.prototype.scrubbing=function(){return null===this.status?null:this.status.scrubbing},t.prototype.toggleFullscreen=function(){var t=this,e=function(){for(var t=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenchange"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitfullscreenchange"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozfullscreenchange"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","MSFullscreenChange"]],e=[],n={},r=0,o=t;r
video thumbnail
'}("https://"+A()+"/"+i.uuid+".jpg",i,a),o.insertAdjacentHTML("afterbegin",u),It(i.uuid).then((function(t){var e=l("play-button","button",o);1===e.length&&e[0].setAttribute("aria-label","Play video "+t.name+". Opens in a modal")}),(function(){})),kt({container:n.container,iframe:s,overlayZindex:e.overlayZindex,player:n}),r("getStyle sent"),q(n.uuid).then((function(t){r("getStyle received: "+JSON.stringify(t)),function(t,e){if(1===t.pb){var n=l("play-button","button",e);1===n.length&&(n[0].style.display="block",n[0].style.backgroundColor="#"+t.pbc)}}(t,n.container)}))}({dataParams:r,player:c}),function(t){var e=window.VidyardV4.integrations,n=L.setLevel(t.uuid),r=e.getCookie("marketo");r&&(n("getMarketoLead sent"),function(t,e){return new u((function(n,r){var o=encodeURIComponent(e),i=""+C()+t+"/contact/"+o+"/marketoContact.js";H({error:r,success:n,url:i,uuid:"marketoContact_"+t})}))}(t.uuid,r).then(b).then((function(r){n("getMarketoLead received: "+r),t.on("ready",(function(){e.addKnownVisitor("marketo",r,t.org)}))})).catch((function(){L.warn("Invalid Marketo cookie")}))),n("getIntegrations"),function(t){return new u((function(e,n){return H({error:n,success:e,url:""+C()+t+"/integrations.js",uuid:"integrations_"+t})}))}(t.uuid).then((function(r){n("getIntegrations received: "+JSON.stringify(r)),t.on("ready",(function(){t._tmpOrg=r,e.updatePlayer(t)}))}))}(c),function(t){var e=L.setLevel(t);e("getSEO sent"),function(t){return new u((function(e,n){return H({error:n,success:e,url:""+C()+t+"/details.js",uuid:"details_"+t})}))}(t).then((function(t){if(e("getSEO: "+JSON.stringify(t)),!function(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return JSON.stringify(t)===JSON.stringify({})}(t)){var n=function(t){var e=document.createElement("script");return e.type="application/ld+json",e.text=JSON.stringify(t),e}(t);document.getElementsByTagName("head")[0].appendChild(n)}}))}(o),window.Vidyard._players[c.uuid]=c,c}d('Embed without a UUID detected, it is impossible to insert a player without a UUID. Add "data-uuid=some_uuid" to the offending element.'+t)};function Lt(){this._compare=function(t,e){return t[0]e[0]?1:t[1]e[1]?1:0}}function Bt(t,e,n){var r;void 0===e&&(e=[1,25,50,75,90]);var o=[],i=n?((r={})[n.uuid]=n,r):function(){try{return window.Vidyard.players()}catch(t){return d((function(){return console.error("The Vidyard Player API must be loaded before this script can execute")})),{}}}(),a=function(t){t.sort((function(t,e){return te?1:0}));for(var e=0;e0&&""!==i[e]){var n=function(t,e,n){var r=[],o=!1,i=t.getCurrentChapter();function a(){var e=t.getCurrentChapter();return r[e]={interval:[0,0],intervals:Lt.create(),thresholds:n.slice()},r[e]}var u=function(n){var u=t.getCurrentChapter();i===u?function(e,n){var i,u,c,s=0,l=t.getCurrentChapter();if(void 0===r[l]&&a(),!(o||"object"!=typeof t.metadata||e<=r[l].interval[1])){if(r[l].interval[1]=e,u=r[l].intervals.insertOne(r[l].interval),(i=function(t){var e,n=null,r=[];for(e=0;en[1]&&(n[1]=t[e][1]);return n&&r.push(n),r}(r[l].intervals)).length+1=r[l].thresholds[0]&&n({chapter:l,event:r[l].thresholds.shift(),player:t})}}(n,e):i=u},c=function(e){var n=t.getCurrentChapter();void 0!==r[n]&&(!1===o&&(r[n].interval[1]=e.start),o=!0)},s=function(e){var n=e,i=t.getCurrentChapter();void 0===r[i]&&a(),r[i].intervals.insertOne(r[i].interval.slice(0)),r[i].interval[0]=n,r[i].interval[1]=n,o=!1},l=function(t){r[t].interval=[0,0],o=!1};return t.on("timeupdate",u),t.on("beforeSeek",c),t.on("play",s),t.on("chapterComplete",l),{player:t,removeEventListeners:function(){t.off("beforeSeek",c),t.off("chapterComplete",l),t.off("play",s),t.off("timeupdate",u),t=null,r=[]}}}(i[e],t,a);o.push(n)}else d((function(){return console.error("Could not attach Progress Events to player "+e+", make sure to load the Vidyard Player API from https://play.vidyard.com/v0/api.js")}))};for(var c in i)u(c);return 0===o.length&&d((function(){return console.warn("No Vidyard Players found. (include this script below player embed codes)")})),o}Lt.create=function(){return new Lt},Lt.prototype=new Array,Lt.prototype.constructor=Array.prototype.constructor,Lt.prototype.insertOne=function(t){var e=this.bsearch(t);return this.splice(e+1,0,t),e+1},Lt.prototype.remove=function(t){return this.splice(t,1),this},Lt.prototype.bsearch=function(t){if(!this.length)return-1;for(var e,n,r,o=0,i=this.length;i-o>1;){if(n=this[e=Math.floor((o+i)/2)],0===(r=this._compare(t,n)))return e;r>0?o=e:i=e}return 0===o&&this._compare(this[0],t)>0?-1:o};var Ft=function(t){L.setLevel("placeholder")("rendering player from placeholder image");var e=Ut(t);return new u((function(t){e.showLightbox?t(e):e.on("ready",(function(){return t(e)}))}))},Mt={_debug:M,api:{GDPR:{consent:function(t){if(void 0!==t)for(var e=function(e){e.on("ready",(function(){e.consentToGDPR(t)}))},n=0,r=window.VidyardV4.players;n=0&&l.splice(e,1)}function v(t){var e=document.createElement("style");return void 0===t.attrs.type&&(t.attrs.type="text/css"),m(e,t.attrs),h(t,e),e}function m(t,e){Object.keys(e).forEach((function(n){t.setAttribute(n,e[n])}))}function g(t,e){var n,r,o,i;if(e.transform&&t.css){if(!(i=e.transform(t.css)))return function(){};t.css=i}if(e.singleton){var a=s++;n=c||(c=v(e)),r=x.bind(null,n,a,!1),o=x.bind(null,n,a,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(t){var e=document.createElement("link");return void 0===t.attrs.type&&(t.attrs.type="text/css"),t.attrs.rel="stylesheet",m(e,t.attrs),h(t,e),e}(e),r=function(t,e,n){var r=n.css,o=n.sourceMap,i=void 0===e.convertToAbsoluteUrls&&o;(e.convertToAbsoluteUrls||i)&&(r=f(r)),o&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var a=new Blob([r],{type:"text/css"}),u=t.href;t.href=URL.createObjectURL(a),u&&URL.revokeObjectURL(u)}.bind(null,n,e),o=function(){y(n),n.href&&URL.revokeObjectURL(n.href)}):(n=v(e),r=function(t,e){var n=e.css,r=e.media;if(r&&t.setAttribute("media",r),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}.bind(null,n),o=function(){y(n)});return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else o()}}t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=a()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var n=p(t,e);return d(n,e),function(t){for(var r=[],o=0;o1)for(var n=1;n=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},n(14),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,n(0))}])},t.exports=r()},904:function(t,e,n){"use strict";n.r(e),n(48),n(313),n(905),n(206),n(311)},905:function(t,e,n){(function(e){t.exports=e.SharingPage2019=n(906)}).call(this,n(2))},906:function(t,e,n){(function(e){function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=t[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}}(t,e)||function(t,e){if(t){if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n-1&&e.has("fbclid")&&(e.delete("fbclid"),window.location.replace("".concat(window.location.pathname,"?").concat(e.toString())))},init:function(t,n,r,o,u,c,l,f,d,p,h,y,v){var m=this;this.sanitizeUrl(),this.actionUuid=t,this.actionLayoutUuid=n,this.actionInput=c,e("body").colourBrightness(),this.hasBspFeature=u,this.playerCtaVariation=p,this.hasPlayerCta=2===p,this.playerReactionsVariant=h,this.useCaseHeaderVariant=y,this.hasCname=v,this.iePolyfill(),this.initOverlay(),this.initCtaTracker(r,l),this.initCtaHighlighter(),this.initPqlpBanner(),this.initCTAExperimentHeapTracker(),this.initReactionsExperimentHeapTracker(),this.initUseCaseHeaderHeapTracker(),this.initialPlay=!0,d?this.addLargerPlayerExperimentClasses():a.init(o),i.api.addReadyListener((function(t,e){m.checkGDPRConsent(),m.sendDDTiming("player embed ready"),e.on("play",(function(){m.videoPlayedByUser=!0,f&&m.addTrackingPixels(),m.initialPlay?(m.sendDDAction("player initial play"),m.sendDDTiming("playback start"),m.initialPlay=!1):m.sendDDAction("player play")})),e.on("pause",(function(){m.sendDDAction("player paused")})),e.on("seek",(function(){m.sendDDAction("player seeked")})),e.on("chapterComplete",(function(t){m.sendDDAction("player chapter finished",{chapterIndex:t,length:e.metadata.chapters_attributes[t].length_in_seconds})})),e.on("playerComplete",(function(){m.sendDDAction("player finished",{length:e.metadata.length_in_seconds})})),e.on("volumeChange",(function(t){m.sendDDAction("player volume changed",{volume:t})})),e.on("playerComplete",(function(){s.track("Full video watched",{location:"sharing_page_2019",client_id:"shire",_eventName:"Full video watched"})}))}),r)},addLargerPlayerExperimentClasses:function(){document.querySelector("#sharing-stage").classList.add("larger-player");var t=document.querySelector("#free-cta");t&&t.classList&&t.classList.add("larger-player")},replayVideo:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=r(i.api.getPlayersByUUID(t),1)[0],o=n.metadata.chapters_attributes.length-1;this.closeInPlayerCta(),n.playChapter(e?0:o);var a=e?"Re-Start Playlist - In Player CTA":"Watch again - In Player CTA";s.track(a,{location:"sharing_page_2019",client_id:"shire",_eventName:a})},closeInPlayerCta:function(){document.querySelector("#sharing-stage .cta-overlay").classList.remove("visible")},setTabIndices:function(t){document.getElementById("footer-learn-more-button").tabIndex=t,document.getElementById("footer-confirm-button").tabIndex=t,document.getElementById("footer-close-button").tabIndex=t},setPqlpTabIndices:function(t){document.getElementById("pqlp-close-button").tabIndex=t},showTooltips:function(){var t=document.getElementById("logo-tooltip");t&&t.classList&&t.classList.remove("removed");var e=document.getElementById("cta-tooltip");e&&e.classList&&e.classList.remove("removed")},showBanner:function(){var t=document.getElementById("upgrade-banner");if(t&&t.classList){if(t.classList.contains("pqlp-banner")){if("true"===c.getItem("_pqlpBannerClosed"))return;this.sendPqlpHeapEvent("shown"),this.setPqlpTabIndices(0)}t.classList.remove("removed")}else t.className="upgrade-banner"},closeFooter:function(){var t=document.getElementById("footer");t.classList?t.classList.add("hidden"):t.className="footer hidden",this.setTabIndices(-1)},showFooter:function(){if(!this.hasBspFeature){var t=document.getElementById("footer");t.classList?t.classList.remove("hidden"):t.className="footer",this.setTabIndices(0)}},acceptCookies:function(){localStorage.setItem("vy-consent-0",!0),i.api.GDPR.consent(!0),this.closeFooter(),this.videoPlayedByUser&&this.addTrackingPixels()},trackableRequest:function(){var t=this,e=new XMLHttpRequest;return new Promise((function(n,r){e.onreadystatechange=function(){4===e.readyState&&(e.status>=200&&e.status<300?n(JSON.parse(e.response)):r({status:e.status,statusText:e.statusText}))},t.hasCname||(e.open("GET","https://privacy.vidyard.com/trackable",!0),e.send())}))},checkGDPRConsent:function(){var t=this;localStorage.getItem("vy-consent-0")?this.acceptCookies():this.trackableRequest().then((function(e){e.trackable?t.acceptCookies():i.api.GDPR.hasConsentOnReady((function(e){e||t.showFooter()}))})).catch((function(){t.showFooter()}))},addTrackingPixels:function(){this.trackingPixelsAdded||"false"===localStorage.getItem("vy-consent-0")||(this.addLinkedinTracker(),this.addFacebookTracker(),this.trackingPixelsAdded=!0)},addLinkedinTracker:function(){var t,e=[];e.push(document.createComment("Linkedin Pixel Code")),(t=document.createElement("script")).type="text/javascript",t.appendChild(document.createTextNode('\n _linkedin_partner_id = "1030292";\n window._linkedin_data_partner_ids = window._linkedin_data_partner_ids || [];\n window._linkedin_data_partner_ids.push(_linkedin_partner_id);')),e.push(t),(t=document.createElement("script")).type="text/javascript",t.appendChild(document.createTextNode('\n (function(){\n var s = document.getElementsByTagName("script")[0];\n var b = document.createElement("script");\n b.type = "text/javascript";b.async = true;\n b.src = "https://snap.licdn.com/li.lms-analytics/insight.min.js";\n s.parentNode.insertBefore(b, s);\n })();')),e.push(t),t=document.createElement("noscript");var n=document.createElement("img");n.height=1,n.width=1,n.style.display="none",n.alt="",n.src="https://px.ads.linkedin.com/collect/?pid=1030292&fmt=gif",t.appendChild(n),e.push(t),e.push(document.createComment("End Linkedin Pixel Code")),e.forEach((function(t){return document.body.appendChild(t)}))},addFacebookTracker:function(){var t,e=[];e.push(document.createComment("Facebook Pixel Code")),(t=document.createElement("script")).appendChild(document.createTextNode("\n !function(f,b,e,v,n,t,s) {if(f.fbq)return;n=f.fbq=function(){n.callMethod?\n n.callMethod.apply(n,arguments):n.queue.push(arguments)};\n if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';\n n.queue=[];t=b.createElement(e);t.async=!0;\n t.src=v;s=b.getElementsByTagName(e)[0];\n s.parentNode.insertBefore(t,s)}(window, document,'script',\n 'https://connect.facebook.net/en_US/fbevents.js');\n fbq('init', '130387370922746');\n fbq('track', 'PageView');")),e.push(t),t=document.createElement("noscript");var n=document.createElement("img");n.height=1,n.width=1,n.style.display="none",n.src="https://www.facebook.com/tr?id=130387370922746&ev=PageView&noscript=1",t.appendChild(n),e.push(t),e.push(document.createComment("End Facebook Pixel Code")),e.forEach((function(t){return document.head.appendChild(t)}))},addHeapTracker:function(t,e){var n=document.getElementById(t);n&&n.addEventListener("click",(function(){s.track("".concat(e," Sharing Page (2019) Sign Up"))}))},actionHandler:function(t,e,n){var o=document.getElementById("custom-confirm-button"),a=!!o,u=this.actionLayoutUuid,c=this.actionUuid;a||(o=document.getElementById(n)),o&&o.addEventListener("click",(function(){!function e(n,r,o){if(r)if(r.status&&r.status.playerLoadId&&r.status.videoId){var s={action_type:a?"SHAREPAGE_ACTION":"DEFAULT_ACTION",action_layout_uuid:u,action_uuid:c,organization_id:r.org.id,player_load_id:r.status.playerLoadId,player_uuid:t,timestamp:n,video_uuid:r.status.videoId,video_time:r.status.currentTime,vidyard_uuid:r.metadata.visitorID,event_type:"sharingPageAction",is_default:!1,event_id:0};vidyardAjax({type:"POST",dataType:"json",contentType:"application/json",url:"https://".concat(o,"/v2/actions"),data:JSON.stringify(s)})}else r.on("visitor",(function(){r.off("visitor"),e(n,r,o)}));else i.api.addReadyListener((function(t,r){e(n,r,o)}))}(Date.now(),r(i.api.getPlayersByUUID(t),1)[0],e)}))},initCtaHighlighter:function(){var t=this,e=this.hasPlayerCta?document.querySelector("#sharing-stage .cta"):document.querySelector("#sharing-stage ~ .cta");if(e){var n=document.querySelector("#sharing-stage .cta-overlay");i.api.addReadyListener((function(r,o){o.on("play",(function(){e.className=e.className.replace(/\s+finished\b/g,"")})),o.on("playerComplete",(function(){if(e.className+=" finished",1===t.playerCtaVariation||2===t.playerCtaVariation){var r="Acquisition - Full Free Video Watched",o=1===t.playerCtaVariation?"Control Group - Static CTA":"Experiment Group - In-player CTA";s.track(r,{location:"sharing_page_2019",client_id:"shire",variation:o,_eventName:r})}if(t.hasPlayerCta){n.classList.add("visible");var i=document.getElementById("free-cta");window.innerWidth>750&&(i.setAttribute("role","dialog"),window.setTimeout((function(){document.getElementById("email-signup-button").focus()}),50))}}))}))}},initPqlpBanner:function(){var t=this,e=document.getElementById("upgrade-banner");null!==e&&e.classList.contains("pqlp-banner")&&(document.getElementById("theme-link").onclick=function(){t.sendPqlpHeapEvent("cta_clicked")})},initCTAExperimentHeapTracker:function(){if(1===this.playerCtaVariation||2===this.playerCtaVariation){var t="Acquisition - In-player CTA experiment",e=1===this.playerCtaVariation?"Control Group - Static CTA":"Experiment Group - In-player CTA";s.track(t,{location:"sharing_page_2019",client_id:"shire",variation:e,_eventName:t})}},initReactionsExperimentHeapTracker:function(){if(1===this.playerReactionsVariant||2===this.playerReactionsVariant){var t="viewed - Acquisition share page reaction experiment",e=1===this.playerReactionsVariant?"Control Group - No reactions":"Experiment Group - Reactions enabled";s.track(t,{location:"sharing_page_2019",client_id:"shire",variation:e,_eventName:t})}},initUseCaseHeaderHeapTracker:function(){if(0!==this.useCaseHeaderVariant){var t="Viewed - Container header use case experiment",e=1===this.useCaseHeaderVariant?"Control Group - No use case header":"Experiment Group - Use case header enabled";s.track(t,{location:"sharing_page_2019",client_id:"shire",variation:e,_eventName:t})}},sendPqlpHeapEvent:function(t){var e=document.getElementById("upgrade-banner"),n="UNKNOWN";if(null!==e){var r=e.getAttribute("variation");r&&(n=r)}var o="PQLP Banner - ".concat(t);s.track(o,{action:t,location:"sharing_page_2019",variation:n,client_id:"shire",_eventName:o})},closePqlpBanner:function(){this.sendPqlpHeapEvent("closed"),c.setItem("_pqlpBannerClosed","true");var t=document.getElementById("upgrade-banner");t.classList?t.classList.add("removed"):t.className="removed banner",this.setPqlpTabIndices(-1)},initCtaTracker:function(t,e){var n=this;s.track("Sharing Page (2019) Shown"),["google-signup-button","outlook-signup-button","apple-signup-button","email-signup-button"].forEach((function(r){n.actionHandler(t,e,r)})),this.addHeapTracker("google-signup-button","Google"),this.addHeapTracker("outlook-signup-button","Outlook"),this.addHeapTracker("apple-signup-button","Apple"),this.addHeapTracker("email-signup-button","Email")},openAction:function(){window.open(this.actionInput.action_button_link,"_blank")},trackHeaderCtaClick:function(){var t="Acquisition - New Container Header CTA Sign Up";s.track(t,{location:"sharing_page_2019",client_id:"shire",_eventName:t})},sendDDAction:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};void 0!==window.DD_RUM&&window.DD_RUM.addAction(t,e)},sendDDTiming:function(t){window.DD_RUM&&window.DD_RUM.addTiming(t)}};t.exports=l}).call(this,n(7))},907:function(t,e,n){var r=n(90),o={img:null,iWidth:null,iHeight:null,playerWidth:640,aspectRatio:1,stage:null,sharingStage:null,iframeParent:null,playlistOpen:!1,arElement:null,containerFluid:null,lrMargins:0,cta:null,prevClientWidth:null,throttledResizeEvent:document.createEvent("Event"),getDOM:function(){o.img=document.querySelector("#stage img"),o.stage=document.getElementById("stage"),o.sharingStage=document.getElementById("sharing-stage"),o.iframeParent=document.querySelector(".vidyard-player-container div:first-child"),o.arElement=document.getElementsByClassName("aspect-ratio")[0],o.containerFluid=document.getElementsByClassName("container-fluid")[0],o.cta=document.getElementsByClassName("cta")[0]},waitForThumbnail:function(){var t=10,e=setInterval((function(){if(t<=0)return clearInterval(e),void console.error("timed out waiting for thumbnail");if(o.getDOM(),t-=1,null!==o.img&&o.img.complete&&o.stage&&null!==o.iframeParent&&o.iframeParent.getAttribute("data-pl")){clearInterval(e);var n=window.getComputedStyle(o.containerFluid);o.lrMargins=parseInt(n.paddingLeft,10)+parseInt(n.paddingRight,10),o.iWidth=o.img.width,o.iHeight=o.img.height,o.aspectRatio=o.iHeight/o.iWidth,o.cta&&(o.cta.style.opacity="1"),o.arElement.classList.add("dom-ready"),o.resize()}}),500)},resize:function(){var t,e=Math.max(document.documentElement.clientHeight,window.innerHeight,0),n=Math.min(document.documentElement.clientWidth,window.innerWidth);if(e&&n&&n!==o.prevClientWidth){o.prevClientWidth=n;var r=Math.max(n-o.lrMargins,294),i=e-o.stage.getBoundingClientRect().top-(o.cta?o.cta.getBoundingClientRect().height+60:0),a=Math.min(i,1200),u=Math.min(a/o.aspectRatio,Math.min(r,o.playerWidth)),c=Math.max(294,u);o.playlistOpen="true"===(null===(t=o.iframeParent)||void 0===t?void 0:t.getAttribute("data-pl"))&&n-o.lrMargins>638&&c+319>638;var s=o.playlistOpen?c+319:c;o.stage.style.maxWidth="".concat(s,"px"),o.stage.style.minWidth="".concat(294,"px"),o.stage.dispatchEvent(this.throttledResizeEvent)}},init:function(t){this.throttledResizeEvent.initEvent("throttledResize",!0,!0),o.getDOM(),t&&(o.playerWidth=t),o.waitForThumbnail(),window.addEventListener("resize",(function(){_.throttle(o.resize(),100)})),r.api.addReadyListener((function(){o.arElement.classList.add("player-ready")}))}};t.exports=o},95:function(t,e){var n=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},96:function(t,e,n){(function(t){var r=n(12),o=e&&!e.nodeType&&e,i=o&&"object"==typeof t&&t&&!t.nodeType&&t,a=i&&i.exports===o?r.Buffer:void 0,u=a?a.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var n=t.length,r=u?u(n):new t.constructor(n);return t.copy(r),r}}).call(this,n(24)(t))},97:function(t,e,n){var r=n(85);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}},98:function(t,e,n){var r=n(12).Uint8Array;t.exports=r},99:function(t,e){t.exports=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n